﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Sobiens.Web.Controls.Samples._Default" %>

<%@ Register TagPrefix="Sobiens" Namespace="Sobiens.Web.Controls.SDXDataGrid" Assembly="Sobiens.Web.Controls.SDXDataGrid" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>

    <h2>
        SDXDataGrid Sample
    </h2>
    <p>
    <Sobiens:ServerControl1 ID="SDXGrid1" runat="server" AllowEditTemplate="true" AllowPaging="True"
        AllowSorting="True" AutoGenerateColumns="False" BorderColor="#ADAA9C"
        BorderWidth="1px" CellSpacing="1" OnOnUpdate="SDXGrid1_OnUpdate"
        ResourcePath="SDXGrid" Width="1022px">
                <SelectorItemStyle BackColor="Gray" BorderColor="#F7EFE7" />
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
            <asp:BoundField DataField="Age" HeaderText="Age" SortExpression="Age" />
            <asp:BoundField DataField="Sex" HeaderText="Sex" SortExpression="Sex" />
            <asp:BoundField DataField="BirthDate" HeaderText="BirthDate" SortExpression="BirthDate" />
            <asp:BoundField DataField="Country" HeaderText="Country" SortExpression="Country" />
            <asp:BoundField DataField="Married" HeaderText="Married" SortExpression="Married" />
            <asp:BoundField DataField="Note" HeaderText="Note" SortExpression="Note" />
        </Columns>
        <GroupByTableStyle BackColor="Gray" CellPadding="1" CellSpacing="1" Font-Names="Microsoft Sans Serif"
            Font-Size="10pt" ForeColor="White" />
        <GroupByTableItemStyle BackColor="Silver" ForeColor="White" />
        <SearchStyle BackColor="#CEF3CE" Font-Names="Microsoft Sans Serif" Font-Size="10pt" />
        <RowStyle BorderColor="#ADAA9C" Font-Names="Microsoft Sans Serif" Font-Size="10pt" />
        <NavigatorStyle BackColor="Gray" BorderColor="#9C9ACE" />
        <SelectedRowStyle BackColor="#FF8000" />
        <PagerStyle BackColor="White" Font-Names="Microsoft Sans Serif" Font-Size="10pt" />
        <HeaderStyle BackColor="Gray" BorderColor="#F7EFE7" Font-Names="Microsoft Sans Serif"
            Font-Size="10pt" ForeColor="White" />
        <AlternatingRowStyle BorderColor="#ADAA9C" Font-Names="Microsoft Sans Serif" Font-Size="10pt" />
        <EditRowStyle ForeColor="#C0C000" />
        <EmptyDataTemplate>
            <table style="background-color: gray; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid;" border="0" bordercolor=navy>
                <tr><td>ID</td><td><input disabled id="#ID" name="#ID" type="text" /></td></tr>
                <tr>
                    <td>
                        Name</td>
                    <td>
                        <input id="#Name" name="#Name" type="text" /></td>
                </tr>
                <tr>
                    <td>
                        Married</td>
                    <td>
                        <input id="Checkbox1" name="#Married" type="checkbox" /></td>
                </tr>
                <tr>
                    <td valign="top">
                        Gender</td>
                    <td>
                        <input id="Radio1" name="#Sex" type="radio" value="M" />Male<br />
                        <input id="Radio2" name="#Sex" type="radio" value="F" />Female
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <input id="Button1" onclick="MainContent_SDXGrid1.Rows.ApplyChanges()" type="button"
                            value="OK" />
                        <input id="Button2" onclick="MainContent_SDXGrid1.Rows.CancelChanges()" type="button"
                            value="Cancel" />
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
    </Sobiens:ServerControl1>

    </p>
</asp:Content>
